package xd.ylwy.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author xd
 * @since 2022-09-23
 */
@Controller
public class MyController {

    @GetMapping("/index")
    public String indexRoute(Model model) {
        return "/index";
    }
    @GetMapping("/personal")
    public String personalRoute(String student,Model model) {
        model.addAttribute("student",student);
        return "/personal";
    }

    @GetMapping("/history")
    public String historyRoute() {
        return "/history";
    }

}

